#include "app_message.h"
#include "log/log.h"

int main(void){
    char *json_str = "{\"conn_type\":1,\"id\":\"5858\",\"msg\":\"61626364\"}";
    char buffer[100]={0};
    //61626364->abcd
    int chars_len=app_message_JSONToChars(json_str,buffer,100); //61626364->abcd
    log_info("chars:%s,chars_len:%d",buffer,chars_len);

    //abcd->61626364
    char* jsonStr=app_message_charsToJSON(buffer,chars_len);
    log_info("json:%s",jsonStr);
    return 0;
    
}